#include "lexical.h"
#include <stdio.h>

void show_ch(char ch);
int scan(void);
extern FILE *file;
extern char ch_g;
extern int line_num_g;
extern int col_num_g;


int main(int argc, const char *argv[])
{
	if(argc < 2)
		return -1;
	file = fopen(argv[1], "r");
	
	while(scan() != END) {
		show_ch(ch_g);
		printf("(%d, %d)\n", line_num_g, col_num_g);
	} 
	return 0;
}
